<?php

namespace app\admin\model;

use think\Model;

class Stuclass extends Model
{
    // 表名
    protected $name = 'stuclass';

    public static function  getClassList(){
        $list=Stuclass::where(true)->select();
        // halt($list);
        $res=[];
        foreach($list as $k=>$v){
            $res[$v["id"]]=$v["classname"];
        }
        return $res;
    }
    
}
